package cn.pet.service.manage.entity;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
 * <p>
 * 用户表
 * </p>
 *
 * @author 
 * @since 2023-02-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class PetUser implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户名
     */
    private String username;

    /**
     * 用户真实姓名
     */
    private String realName;

    /**
     * 密码
     */
    private String password;

    /**
     * 微信唯一标识符
     */
    private String openId;

    /**
     * 用户头像
     */
    private String userPicture;

    /**
     * 联系电话
     */
    private String phone;

    /**
     * 邮箱地址
     */
    private String email;

    /**
     * 性别(0：男，1：女)
     */
    private Integer gender;

    /**
     * 状态(0:正常，1：禁用)
     */
    private Integer status;

    /**
     * 用户类型（0：会员，1：管理员 2:员工）
     */
    private Integer userType;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    public static final String ID = "id";

    public static final String USERNAME = "username";

    public static final String REAL_NAME = "real_name";

    public static final String PASSWORD = "password";

    public static final String OPEN_ID = "open_id";

    public static final String USER_PICTURE = "user_picture";

    public static final String PHONE = "phone";

    public static final String EMAIL = "email";

    public static final String GENDER = "gender";

    public static final String STATUS = "status";

    public static final String USER_TYPE = "user_type";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

}
